package com.xmy.cultivate.entity;

import com.alibaba.excel.annotation.ExcelIgnore;
import com.alibaba.excel.annotation.ExcelProperty;
import com.baomidou.mybatisplus.annotation.FieldFill;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableLogic;
import com.baomidou.mybatisplus.annotation.TableName;
import lombok.Data;

import java.io.Serializable;
import java.math.BigDecimal;
import java.time.LocalDate;
import java.time.LocalDateTime;
import java.util.List;

/**
 * <p>
 * 招生数据
 * </p>
 *
 * @author min
 * @since 2023-02-10
 */
@TableName("enroll_info")
@Data
public class EnrollInfo implements Serializable {

    @ExcelIgnore
    private static final long serialVersionUID = 1L;

    @ExcelIgnore
    private Long id;

    @ExcelIgnore
    private Long schoolId;

    @ExcelIgnore
    private String schoolName;

    @ExcelIgnore
    private Long teacherId;

    @ExcelIgnore
    private String teahcerName;

    @ExcelIgnore
    @TableField(exist = false)
    private String teacherName;

    @ExcelIgnore
    private Long teamId;

    @ExcelIgnore
    private String teamName;

    @ExcelIgnore
    private Long orderId;

    @ExcelIgnore
    private Long oldOrderId;

    @ExcelIgnore
    private Long studentId;

    @ExcelProperty(value = "学生姓名", index = 0)
    private String studentName;

    @ExcelIgnore
    private Long subjectsId;

    /**
     * 类型：邀约:1，试听:2，成交:3
     */
    @ExcelIgnore
    private Integer type;

    /**
     * 提成金额
     */
    @ExcelIgnore
    private BigDecimal pushMoney;

    /**
     * 成交数：如0.5个，1个
     */
    @ExcelIgnore
    private Double dealNum;

    /**
     * 是否真实数据
     */
    @ExcelIgnore
    private Integer isTrue;

    /**
     * 提成是否发放
     */
    @ExcelIgnore
    private Integer isGrant;

    /**
     * 发放日期
     */
    @ExcelIgnore
    private LocalDate grantDate;

    /**
     * 是否退费
     */
    @ExcelIgnore
    private Integer isReturn;

    @ExcelIgnore
    private Long outId;

    @ExcelIgnore
    private Long changeSchoolDetailId;


    @TableLogic
    @ExcelIgnore
    private Integer deleted;

    @ExcelIgnore
    private LocalDate addDate;

    private Integer checkType;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private LocalDateTime createdAt;

    @ExcelIgnore
    @TableField(exist = false)
    private Integer peopleTotal;
    @ExcelIgnore
    @TableField(exist = false)
    private Integer verifiedNum;
    @ExcelIgnore
    @TableField(exist = false)
    private Integer notVerifiedNum;

    @ExcelIgnore
    @TableField(exist = false)
    private LocalDate minAddDate;

    @ExcelIgnore
    @TableField(exist = false)
    private LocalDate maxAddDate;

    @ExcelIgnore
    @TableField(exist = false)
    private LocalDate startTrueDate;

    @ExcelIgnore
    @TableField(exist = false)
    private LocalDate endTrueDate;


    @ExcelIgnore
    @TableField(exist = false)
    private List<EnrollInfo> childrenList;

    @ExcelIgnore
    @TableField(fill = FieldFill.INSERT)
    private Long createdId;

}
